<table cellpadding="0" class="table"><tbody>
    <tr>
        <th width="25%">商品名称</th>
        <th width="10%">商品码</th>
        <th width="10%">数量</th>
        <th width="15%">积分</th>
    </tr>

    <?php
       foreach ($goodsInfo as $r)  {
    ?>
    <tr>

        <td><?php echo $r["goodName"]?></td>
        <td><?php echo $r["barcode"]?></td>
        <td><?php echo $r["num"]?></td>
        <td><?php echo $r["needPoints"]?></td>

    </tr>

    <?php }?>


    </tbody></table>